<div id="wrapFooter">
<?php if($_SESSION['mobile']==0){?>	
	<div style="max-width:620px; margin:auto;">
	<ul class="nav nav-pills">
    	<li><a href="<?php echo HOME;?>"><i class="fa fa-home"> </i>Trang Chủ</a></li>
        <li><a href="http://mong.vn/truyen">Truyện</a></li>
        <li><a href="http://mong.vn/blog">Blog</a></li>
         <li><a href="http://mong.vn/video">Video - Music</a></li>
         <li><a href="http://mong.vn/blog/playlist/13.html">Hướng Dẫn</a></li>
          <li><a href="http://mong.vn/index.php?module=user&act=login">Đăng Nhập </a></li>
        
    </ul>
    </div>
    <!-- <div id="cboxbutton" style="position: fixed; bottom: 100px; right: -35px; width: 100px; padding: 3px; text-align: center; cursor: pointer; background-color: #EDF3F7; border:#C3D7E5 1px solid;border-radius: 3px; font-family: Tahoma, sans-serif; font-size: 14px; -webkit-transform:rotate(90deg); -moz-transform:rotate(90deg); -o-transform: rotate(90deg);" onclick="togglecbox()"><b>Chat</b></div>
<div id="cboxdiv" style="display: none; position: fixed; bottom: 48px; right: 40px; width: 207px; background: #EDF3F7; padding: 3px; line-height: 0;border:#C3D7E5 1px solid;border-radius: 3px;"></div>
 -->
 <?php
 $url=url();
  if($url=='http://mong.vn' || $url='mong.vn' || $url='http://mong.vn/'){}else{ ?>
 <div id="cboxbutton" style="position: fixed; bottom: 100px; right: -35px; width: 100px; padding: 3px; text-align: center; cursor: pointer; color: #fff; background-color: #359e9d; border:#C3D7E5 1px solid;border-radius: 3px; font-family: Tahoma, sans-serif; font-size: 14px; -webkit-transform:rotate(270deg); -moz-transform:rotate(270deg); -o-transform: rotate(270deg);" onclick="togglecbox()"><b>Chat Room <i class="fa fa-comments"></i></b></div>
<div id="cboxdiv" style="display: none; position: fixed; bottom: 48px; right: 40px; width: 345px; background: #359e9d; padding: 3px; line-height: 0;border:#C3D7E5 1px solid;border-radius: 3px;"></div>
<?php $avatar="https://graph.facebook.com/".$_SESSION['user']['facebook_id']."/picture";
$profile="https://facebook.com/".$_SESSION['user']['facebook_id']."/";
 ?>
<script type="text/javascript">
var cbvis = false;
var cbload = false;
var cbcookie = "cboxvis=";

function togglecbox () {
	var cbdiv = document.getElementById("cboxdiv");
	var cbbut = document.getElementById("cboxbutton");

	if (!cbvis) {
		if (!cbload) {
			cbdiv.innerHTML = '<iframe frameborder="0" width="340" height="305" src="http://www5.cbox.ws/box/?boxid=842763&amp;boxtag=lrxv0n&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain5-842763" style="border:none" id="cboxmain5-842763"></iframe><iframe frameborder="0" width="340" height="75" src="http://www5.cbox.ws/box/?boxid=842763&amp;boxtag=lrxv0n&amp;sec=form&amp;nme=<?php echo urlencode($_SESSION['user']['username'])?>&amp;nmekey=<?php echo md5('30f831mam1d68a2k'.$_SESSION['user']['username'])?>&amp;pic=<?php echo urlencode($avatar)?>&amp;lnk=<?php echo urlencode($profile)?>&amp;ekey=<?php echo md5("30f831mam1d68a2k"."\t".$avatar."\t".$profile)?>" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform5-842763" style="border:none" id="cboxform5-842763"></iframe>';
			cbload = true;
		}
		cbdiv.style.display = "block";
		cbbut.innerHTML = "Close Cbox";
	}
	else {
		cbdiv.style.display = "none";
		cbbut.innerHTML = "Open Cbox";
	}
	cbvis = !cbvis;
	document.cookie = cbcookie+((cbvis)?1:0);
}
// Toggle Cbox open if it was previously
var cbcookiei = document.cookie.indexOf(cbcookie);
if (cbcookiei >= 0) {
	if (document.cookie.substring(cbcookiei+cbcookie.length, cbcookiei+cbcookie.length+1) === "1") {
		togglecbox();
	}
}
</script>
<?php } // isset $_GET to show cbox ?>

    <?php }?>
<div id="copyright-footer" class="text-center" style="color: #666; font-size: 12px;">

<span style="line-height: 26px;">Bản quyền thuộc về <a href="<?php echo HOME;?>">Mong.vn</a> - website <a href="<?php echo HOME ?>" title="doc truyen online, đọc truyện online"  style="margin-right:10px;"  ><strong>đọc truyện online</strong> </a> , <a href="http://anime24h.vn" title="Xem anime online"  style="margin-right:10px;"  ><strong>Xem Anime online</strong> </a></span>
<br />
<a href="https://www.facebook.com/mong.vn"><img src="public/images/facebook-30.png" alt="Facebook fanpage" /></a>
<a href="https://plus.google.com/112523049489981033112/posts"><img src="public/images/google-plus-30.png" alt="Google+" /></a>
<div style="margin-bottom: 5px;"></div>



<?php if(0){?>
Copyright © 2013. Tài nguyên được tổng hợp từ Internet hoặc chia sẻ từ thành viên của chúng tôi. Chúng tôi không chịu bất cứ trách nhiệm nào về bản quyền. <Br/>
<p style="text-align:justify; font-size:11px; color:#999">
Nguồn truyện của chúng tôi được tổng hợp từ các trang đọc truyện online như <a href="http://4vn.eu/" rel="nofollow">4vn.ue</a>, <a href="www.tangthuvien.com/forum/" rel="nofollow">Tàng Thư Viện</a>,<a href="http://diendanlequydon.com/viewforum.php?f=148">Diễn đàn Lê Qúy Đôn</a>,<a href="http://viptruyen.vn/@forum/forum.php">Vip Văn Đàn</a> <a href="www.bachngocsach.com/‎" rel="nofollow">Bạch Ngọc Sách</a>,<a href="http://qttp.wordpress.com/" rel="nofollow">Vô Ảnh Các</a>,<a href="http://forum.zing.vn" rel="nofollow">Forum Zing</a>,<a href="http://ngontinhhay.com/" rel="nofollow">Ngôn Tình Hay</a> ... và rất nhiều nguồn khác nữa . Có thể nhiều truyện chúng tôi đã up mà chưa xin phép người sáng tác, người biên dịch .. chúng tôi rất xin lỗi các bạn và mong các bạn sẽ cho phép chúng tôi chia sẻ tác phẩm của các bạn đến với cộng đồng Mông.vn . Nếu có vấn đề gì, các bạn có thể liên hệ chúng tôi qua facebook của Mộng.vn, chúng tôi sẽ giải quyết nhanh nhất có thể.
</p>


<?php
}?>

</div>
		</div><!-- end #wrapFooter -->
		
	</div><!-- end #wrapAll -->
	
	<div id="errorElementReveal" class="reveal-modal error-reveal-modal" style="display: none;">
		<div class="client-error">
			<div class="text-error">
				<h2>Lỗi</h2>
				<span>Không thể tải nội dung của bài viết. Xin vui lòng refresh trang và thử lại.</span>
			</div>
			
		</div>
	</div>
	
	
		<div id="toTop"></div>
		<?php
			if($_GET['module'] == 'truyen' && $_GET['act'] == 'chuong'){
	echo '<div  id="toBottom">&nbsp;</div>';
}
		?>
  	
	<script type="text/javascript" src="<?php echo BASE_URL; ?>/public/exts/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<?php echo BASE_URL; ?>/public/exts/js/common.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>public/exts/js/select2.min.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>/public/exts/js/jRating.jquery.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>/public/exts/js/general.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>/public/exts/js/tinymce/tinymce.min.js"></script>

    <?php if($_SESSION['mobile']!=0){?>
    <script type='text/javascript' src='public/exts/nav/js/jquery.mCustomScrollbar.concat.min.js'></script>
	<script type='text/javascript' src='public/exts/nav/js/css3aw.js'></script>
	<script type='text/javascript'>
		$(window).load(function(){
			$("#css3aw-main-menu-container").mCustomScrollbar({
				advanced:{
			        updateOnContentResize: true
			    },
			    scrollButtons:{
					enable:true
				},
				theme:"light-thin",
				autoHideScrollbar: true,
				scrollInertia: 450
			});
		});
	</script>
	
	
	
	<?php }?>
<script>
	$(document).ready(function(){
		
		
		$("img.lazy").lazyload({
		 	effect : "fadeIn",
			 failure_limit : 4
		});
		
	  $.scrollUp({
	    scrollName: 'toTop', // Element ID
	    topDistance: '300', // Distance from top before showing element (px)
	    topSpeed: 500, // Speed back to top (ms)
	    animation: 'fade', // Fade, slide, none
	    animationInSpeed: 200, // Animation in speed (ms)
	    animationOutSpeed: 200, // Animation out speed (ms)
	    scrollText: '<img src="public/images/top.png" alt="To top" />', // Text for element
	    activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF'
	  })
	
		  $('#toBottom').click(function () {
				$('html, body').animate({scrollTop:$(document).height()}, 'slow');
				return false;
		});
	 
			
	})
     </script> 
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-42111292-2', 'mong.vn');
  ga('send', 'pageview');

</script>
<!-- Ads float -->
<?php
if($_SESSION['mobile']==0)
{
if(0){
		
 //get chap and hien ads trong trang doc truyen
	 // Hien ads float o trang chu
	?>
	<script>
function flash_load(name,width,height)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+width+"' height='"+height+"'><param name='movie' value='"+name+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><embed src='"+name+"' wmode='transparent' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>")
}	
function Set_Cookie(name, value, expires, path, domain, secure) {
var today = new Date();
today.setTime(today.getTime());
if (expires) {
expires = expires * 1000 * 60 * 60 * 12;
}

var expires_date = new Date(today.getTime() + (expires));
document.cookie = name + "=" + escape(value) +
((expires) ? ";expires=" + expires_date.toGMTString() : "") +
((path) ? ";path=" + path : "") +
((domain) ? ";domain=" + domain : "") +
((secure) ? ";secure" : "");

}







function Get_Cookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if ((!start) &&
(name != document.cookie.substring(0, name.length))) {
return null;

}



if (start == -1) return null;
var end = document.cookie.indexOf(";", len);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(len, end));
}





function Delete_Cookie(name, path, domain) {
if (Get_Cookie(name)) document.cookie = name + "=" +
((path) ? ";path=" + path : "") +
((domain) ? ";domain=" + domain : "") +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
	(function (factory) {
	if (typeof define === 'function' && define.amd) {
		// AMD. Register as anonymous module.
		define(['jquery'], factory);
	} else {
		// Browser globals.
		factory(jQuery);
	}
}(function ($) {

	var pluses = /\+/g;

	function encode(s) {
		return config.raw ? s : encodeURIComponent(s);
	}

	function decode(s) {
		return config.raw ? s : decodeURIComponent(s);
	}

	function stringifyCookieValue(value) {
		return encode(config.json ? JSON.stringify(value) : String(value));
	}

	function parseCookieValue(s) {
		if (s.indexOf('"') === 0) {
			// This is a quoted cookie as according to RFC2068, unescape...
			s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
		}

		try {
			// Replace server-side written pluses with spaces.
			// If we can't decode the cookie, ignore it, it's unusable.
			// If we can't parse the cookie, ignore it, it's unusable.
			s = decodeURIComponent(s.replace(pluses, ' '));
			return config.json ? JSON.parse(s) : s;
		} catch(e) {}
	}

	function read(s, converter) {
		var value = config.raw ? s : parseCookieValue(s);
		return $.isFunction(converter) ? converter(value) : value;
	}

	var config = $.cookie = function (key, value, options) {

		// Write

		if (value !== undefined && !$.isFunction(value)) {
			options = $.extend({}, config.defaults, options);

			if (typeof options.expires === 'number') {
				var days = options.expires, t = options.expires = new Date();
				t.setTime(+t + days * 864e+5);
			}

			return (document.cookie = [
				encode(key), '=', stringifyCookieValue(value),
				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
				options.path    ? '; path=' + options.path : '',
				options.domain  ? '; domain=' + options.domain : '',
				options.secure  ? '; secure' : ''
			].join(''));
		}

		// Read

		var result = key ? undefined : {};

		// To prevent the for loop in the first place assign an empty array
		// in case there are no cookies at all. Also prevents odd result when
		// calling $.cookie().
		var cookies = document.cookie ? document.cookie.split('; ') : [];

		for (var i = 0, l = cookies.length; i < l; i++) {
			var parts = cookies[i].split('=');
			var name = decode(parts.shift());
			var cookie = parts.join('=');

			if (key && key === name) {
				// If second argument (value) is a function it's a converter...
				result = read(cookie, value);
				break;
			}

			// Prevent storing a cookie that we couldn't decode.
			if (!key && (cookie = read(cookie)) !== undefined) {
				result[name] = cookie;
			}
		}

		return result;
	};

	config.defaults = {};

	$.removeCookie = function (key, options) {
		if ($.cookie(key) === undefined) {
			return false;
		}

		// Must not alter options, thus extending a fresh object...
		$.cookie(key, '', $.extend({}, options, { expires: -1 }));
		return !$.cookie(key);
	};

}));
	
	
$(document).ready(function() {
	//Ads Right
	var content = document.getElementById('float_content');
	var hide = document.getElementById('hide_float');
	if($.cookie("floatadschapterleft_manga24h")){
	
		content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float()">Ads By Mộng.vn</a>';
	}else{
	   //HIEN ADS
	
	   content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float()">Đóng Quảng Cáo</a>';
	}
	
	//Ads left ben trai trang doc truyen
	/*
	var content = document.getElementById('float_content2');
	var hide = document.getElementById('hide_float2');
	if($.cookie("floatadschapterright_manga24h")){
		content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float2()">Ads By Manga24h.Com</a>';
	}else{
	   //HIEN ADS
	   content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float2()">Đóng Quảng Cáo</a>';
	}
	
	*/
});

function hide_float() { 
	var content = document.getElementById('float_content');
	 var hide = document.getElementById('hide_float'); 
	 if (content.style.display == "none") {
		  content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float()">Đóng Quảng Cáo</a>';
		 Delete_Cookie('floatadschapterleft_manga24h','/','')
		  
		  
	  }else{ 
	  content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float()">Ads By Mộng.Vn</a>'; 
	  Set_Cookie('floatadschapterleft_manga24h', 'value', '1', '/', '', '');
	   window.open(' http://gg.rongtamquoc.com/?_c=3060');
	
	 }
 }
 
 function hide_float2() { 
			var content = document.getElementById('float_content2');
			 var hide = document.getElementById('hide_float2'); 
			 if (content.style.display == "none") {
				  content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float2()">Đóng Quảng Cáo</a>';
				 Delete_Cookie('floatadschapterright_manga24h','/','')
				  
				  
			  }else{ 
			  content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float2()">Ads By Mộng.Vn</a>'; 
			  Set_Cookie('floatadschapterright_manga24h', 'value', '1', '/', '', '');
			
			  }

  }
</script>

<style>
.float-ck { position: fixed; bottom: 0px; z-index: 2099; text-align:right;}
* html .float-ck /* IE6 position fixed Bottom */{position:absolute;bottom:auto;top:expression(eval (document.documentElement.scrollTop+document.docum entElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))) ;}
#hide_float a { background: #01AEF0; padding: 2px; color: #FFF;}
</style>

<div class="float-ck" style="right: 0pt;">
<div id="hide_float"><a href="javascript:hide_float()">Đóng Quảng Cáo</a></div>
<div id="float_content" style="border: 2px solid rgb(1, 174, 240);background-color:#fff">
 <!-- Begin BidVertiser code -->
<script>flash_load('http://image.manga24h.com/uploaded/mong.swf',300,250)</script>

<!-- End BidVertiser code --> 

</div></div>

<?php
// float chapter right side
if(0){?>
<style>
#hide_float2 a { background: #01AEF0; padding: 2px; color: #FFF;}
</style>
<div class="float-ck" style="left: 0pt;">
<div id="hide_float2"><a href="javascript:hide_float2()" >Đóng Quảng Cáo</a></div>
<div id="float_content2" style="border: 2px solid rgb(1, 174, 240);background-color:#fff">
<!-- Noi dung quang cao go here -->


 <a href="http://dvs.vn/khuyen-mai.html" target="_blank" rel="nofollow"> 
<img src="http://image.manga24h.com/upload/images/2014/02/14/xemphimso.gif" />
</a>

 
<!-- End Noi dung quang cao go here -->
</div></div>
<?php
 			}// float chapter right side

	
	} //1
} // sesion mobile ==0
 ?>
<!-- Float ads -->
<style type="text/css">
.navbar-nav .fb-like{
    height: 20px;
    overflow: hidden;
}

</style>
</body>

	
</html>